<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="/struts-bean" prefix="bean"%>
<%@ taglib uri="/struts-html" prefix="html"%>
<%@ taglib uri="/struts-logic" prefix="logic"%>
<html>
	<head>
		<link href="/css/style.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>欢迎来到龙岗区政府主办公益性职介所</title>
		<link href="css/style.css" rel="stylesheet" type="text/css" />
	</head>
	<script type="text/javascript" src="/js/prototype-1.5.1.2.js"
		charset="UTF-8"></script>
	<script type="text/javascript">


//检查密码
	function checkPwd()
	{
		if (document.all.password.value != document.all.repassword.value){
			alert('\u5bf9\u4e0d\u8d77\uff0c\u4e24\u6b21\u8f93\u5165\u7684\u5bc6\u7801\u4e0d\u4e00\u81f4\uff0c\u8bf7\u91cd\u65b0\u8f93\u5165\uff01');
			document.all.password.value = "";
			document.all.repassword.value ="";
			document.all.password.focus();
		}
	}
	
//必填项
 function doMethod()
 {
    if(document.all.answer.value=="" || document.all.answer.value.length<1){
    alert("对不起,问题答案不能为空!");
    return;
    }
    if(document.all.password.value=="" || document.all.password.value.length<1 
    || document.all.repassword.value=="" || document.all.repassword.value.length<1){
    alert("对不起,密码不能为空!");
    return;
    }
    
    document.forms[0].submit();
 }
</script>
	<body>
		<html:form
			action="/com/struts/web/user/manage/forgetpass.do?pal=setPass"
			method="post">
			<html:hidden property="name" />
			<table width="1003" border="0" align="center" cellpadding="0"
				cellspacing="0">
				<%@ include file="/jsp/top.jsp"%>
				<tr>
					<td align="center" valign="top">
						<table width="880"  border="0" cellpadding="0" cellspacing="1"
									class="line1">
							<tr>
								<td class="mtdtitle1">
									*问题:
								</td>
								<td class="mtdtextleft">
									<bean:write property="question"
										name="com_struts_web_user_manage_ForgetPassForm" />
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*答案:
								</td>
								<td class="mtdtextleft">
									<html:text property="answer" styleClass="input1" />
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*输入密码:
								</td>
								<td class="mtdtextleft">
									<html:password property="password" styleClass="input1" />
								</td>
							</tr>

							<tr>
								<td class="mtdtitle1">
									*确认密码:
								</td>
								<td class="mtdtextleft">
									<input type="password" onblur="checkPwd()" id="repassword" class="input1" />
								</td>
							</tr>

							<tr>
								<td colspan="2" class="mtdtitle1">
									<input type="button" value="提交－>下一步" style="cursor:hand"
										onclick="doMethod()" class="tbutton1" />

								</td>
							</tr>
						</table>
					</td>
				</tr>
				<%@ include file="/jsp/bottom.jsp"%>
			</table>
		</html:form>
	</body>
</html>
